Make the headers-visible property readwrite instead of just writable, and
authorMatthias Clasen <mclasen@redhat.com>
Thu, 13 Jan 2005 14:13:50 +0000 (14:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 13 Jan 2005 14:13:50 +0000 (14:13 +0000)
2005-01-13  Matthias Clasen <mclasen@redhat.com>

* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_set_headers_clickable): Make the headers-visible
property readwrite instead of just writable, and remove the
g_return_if_fail check that there is a model when setting this
property. Also improve the blurb.  (#163851, Richard Hult)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c

index c5b11a0c21e3d9684d4d777cb6f8ff92c2a4bbac..aed2d8cbfbd8d03a1d619f5a90a0871a94b6590e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-01-13  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c: (gtk_tree_view_class_init),
+       (gtk_tree_view_set_headers_clickable): Make the headers-visible
+       property readwrite instead of just writable, and remove the
+       g_return_if_fail check that there is a model when setting this
+       property. Also improve the blurb.  (#163851, Richard Hult)
+
 2005-01-12  Owen Taylor <otaylor@redhat.com>
 
        * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
index c5b11a0c21e3d9684d4d777cb6f8ff92c2a4bbac..aed2d8cbfbd8d03a1d619f5a90a0871a94b6590e 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-13  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c: (gtk_tree_view_class_init),
+       (gtk_tree_view_set_headers_clickable): Make the headers-visible
+       property readwrite instead of just writable, and remove the
+       g_return_if_fail check that there is a model when setting this
+       property. Also improve the blurb.  (#163851, Richard Hult)
+
 2005-01-12  Owen Taylor <otaylor@redhat.com>
 
        * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
index c5b11a0c21e3d9684d4d777cb6f8ff92c2a4bbac..aed2d8cbfbd8d03a1d619f5a90a0871a94b6590e 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-13  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c: (gtk_tree_view_class_init),
+       (gtk_tree_view_set_headers_clickable): Make the headers-visible
+       property readwrite instead of just writable, and remove the
+       g_return_if_fail check that there is a model when setting this
+       property. Also improve the blurb.  (#163851, Richard Hult)
+
 2005-01-12  Owen Taylor <otaylor@redhat.com>
 
        * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
index df92b36f1bfe65933b1b9ad6d24a3c72d46f46d3..09115f78e9a7648e7edb2a325c72d5db2300ccbb 100644 (file)
@@ -579,7 +579,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
   g_object_class_install_property (o_class,
                                    PROP_HEADERS_VISIBLE,
                                    g_param_spec_boolean ("headers_visible",
-                                                        P_("Visible"),
+                                                        P_("Headers Visible"),
                                                         P_("Show the column header buttons"),
                                                         TRUE,
                                                         G_PARAM_READWRITE));
@@ -590,7 +590,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
                                                         P_("Headers Clickable"),
                                                         P_("Column headers respond to click events"),
                                                         FALSE,
-                                                        G_PARAM_WRITABLE));
+                                                        G_PARAM_READWRITE));
 
   g_object_class_install_property (o_class,
                                    PROP_EXPANDER_COLUMN,
@@ -9607,7 +9607,6 @@ gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
   GList *list;
 
   g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
-  g_return_if_fail (tree_view->priv->model != NULL);
 
   for (list = tree_view->priv->columns; list; list = list->next)
     gtk_tree_view_column_set_clickable (GTK_TREE_VIEW_COLUMN (list->data), setting);